package com.hd.tiyu.yuejian.Service;


import com.hd.tiyu.yuejian.JavaBean.GuanZhu;
import com.hd.tiyu.yuejian.JavaBean.Login;
import com.hd.tiyu.yuejian.JavaBean.OrderDetail;
import com.hd.tiyu.yuejian.JavaBean.Pay;
import com.hd.tiyu.yuejian.JavaBean.Register;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/26.
 */

public interface UserService {
    @GET("login")
    Call<Login> userLogin(
            @Query("tel") String tel,
            @Query("password")String password
    );

    @GET("reg")
    Call<Register> register(
            @Query("tel") String tel,
            @Query("password") String password
    );

    @GET("updatename")
    Call<Integer> getUpdateName(
            @Query("userid")String userid,
            @Query("user_name")String user_name
    );

    @GET("updatepass")
    Call<Integer> getUpdatePass(
            @Query("userid")String userid,
            @Query("password")String password
    );

    //个人关注列表
    @GET("lists/mod/fans/SessionID/060pn7sjorpnq5fp53kid5st54/")
    Call<List<GuanZhu>> getUserGuanzhu(
            @Query("userid") String userid);

    //获取订单
    @GET("lists/mod/sign/listorder/update_time/")
    Call<List<Pay>>getPay(
            @Query("userid") String userId,
            @Query("vstate") String vstate,
            @Query("page") String page,
            @Query("SessionID") String sessionId

    );

    //http://172.24.10.175/workout/api.php/getDOrder/id/300000001/type/3/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3
    @GET("getDOrder")
    Call<OrderDetail> getOrderDetail(
            @Query("id")String id,
            @Query("type") String type

    );
}
